﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Oneself : Person
    {
        public string name { get; set; }
        public static string chu { get; set; }
        public Oneself(string name)
        {
            this.name = name;
        }
        public void Test01()
        {
            Console.WriteLine("{0} vs {1} 对战", Name, this.name);
        }

        public void Test03(int key)
        {

            switch (key)
            {
                case 1:
                    chu = "剪刀";
                    break;
                case 2:
                    chu = "石头";
                    break;
                case 3:
                    chu = "布";
                    break;
                default:
                    break;
            }
        }
        public override void Test()
        {
            Console.WriteLine("{0}：出拳：{1}", name, chu);
        }
    }
}
